/*
 * Please do not edit this file.
 * It was generated using rpcgen.
 */

#ifndef _AMQ_H_RPCGEN
#define _AMQ_H_RPCGEN

#define RPCGEN_VERSION	199506

#include <rpc/rpc.h>

#define AMQ_STRLEN 1024

typedef char *amq_string;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_string(XDR *, amq_string *);
#elif defined(__STDC__)
extern bool_t xdr_amq_string(XDR *, amq_string *);
#else /* Old Style C */
bool_t xdr_amq_string();
#endif /* Old Style C */


typedef int64_t time_type;
#ifdef __cplusplus
extern "C" bool_t xdr_time_type(XDR *, time_type *);
#elif defined(__STDC__)
extern bool_t xdr_time_type(XDR *, time_type *);
#else /* Old Style C */
bool_t xdr_time_type();
#endif /* Old Style C */


struct amq_mount_tree {
	amq_string mt_mountinfo;
	amq_string mt_directory;
	amq_string mt_mountpoint;
	amq_string mt_type;
	time_type mt_mounttime;
	u_short mt_mountuid;
	int mt_getattr;
	int mt_lookup;
	int mt_readdir;
	int mt_readlink;
	int mt_statfs;
	struct amq_mount_tree *mt_next;
	struct amq_mount_tree *mt_child;
};
typedef struct amq_mount_tree amq_mount_tree;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *);
#else /* Old Style C */
bool_t xdr_amq_mount_tree();
#endif /* Old Style C */


typedef amq_mount_tree *amq_mount_tree_p;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *);
#else /* Old Style C */
bool_t xdr_amq_mount_tree_p();
#endif /* Old Style C */


struct amq_mount_info {
	amq_string mi_type;
	amq_string mi_mountpt;
	amq_string mi_mountinfo;
	amq_string mi_fserver;
	int mi_error;
	int mi_refc;
	int mi_up;
};
typedef struct amq_mount_info amq_mount_info;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_info(XDR *, amq_mount_info *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_info(XDR *, amq_mount_info *);
#else /* Old Style C */
bool_t xdr_amq_mount_info();
#endif /* Old Style C */


typedef struct {
	u_int amq_mount_info_list_len;
	amq_mount_info *amq_mount_info_list_val;
} amq_mount_info_list;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *);
#else /* Old Style C */
bool_t xdr_amq_mount_info_list();
#endif /* Old Style C */


typedef struct {
	u_int amq_mount_tree_list_len;
	amq_mount_tree_p *amq_mount_tree_list_val;
} amq_mount_tree_list;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *);
#else /* Old Style C */
bool_t xdr_amq_mount_tree_list();
#endif /* Old Style C */


struct amq_mount_stats {
	int as_drops;
	int as_stale;
	int as_mok;
	int as_merr;
	int as_uerr;
};
typedef struct amq_mount_stats amq_mount_stats;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *);
#else /* Old Style C */
bool_t xdr_amq_mount_stats();
#endif /* Old Style C */


enum amq_opt {
	AMOPT_DEBUG = 0,
	AMOPT_LOGFILE = 1,
	AMOPT_XLOG = 2,
	AMOPT_FLUSHMAPC = 3
};
typedef enum amq_opt amq_opt;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_opt(XDR *, amq_opt *);
#elif defined(__STDC__)
extern bool_t xdr_amq_opt(XDR *, amq_opt *);
#else /* Old Style C */
bool_t xdr_amq_opt();
#endif /* Old Style C */


struct amq_setopt {
	amq_opt as_opt;
	amq_string as_str;
};
typedef struct amq_setopt amq_setopt;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_setopt(XDR *, amq_setopt *);
#elif defined(__STDC__)
extern bool_t xdr_amq_setopt(XDR *, amq_setopt *);
#else /* Old Style C */
bool_t xdr_amq_setopt();
#endif /* Old Style C */


#define AMQ_PROGRAM ((u_long)300019)
#define AMQ_VERSION ((u_long)57)

#ifdef __cplusplus
#define AMQPROC_NULL ((u_long)0)
extern "C" void * amqproc_null_57(void *, CLIENT *);
extern "C" void * amqproc_null_57_svc(void *, struct svc_req *);
#define AMQPROC_MNTTREE ((u_long)1)
extern "C" amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *);
extern "C" amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_UMNT ((u_long)2)
extern "C" void * amqproc_umnt_57(amq_string *, CLIENT *);
extern "C" void * amqproc_umnt_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_STATS ((u_long)3)
extern "C" amq_mount_stats * amqproc_stats_57(void *, CLIENT *);
extern "C" amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *);
#define AMQPROC_EXPORT ((u_long)4)
extern "C" amq_mount_tree_list * amqproc_export_57(void *, CLIENT *);
extern "C" amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *);
#define AMQPROC_SETOPT ((u_long)5)
extern "C" int * amqproc_setopt_57(amq_setopt *, CLIENT *);
extern "C" int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *);
#define AMQPROC_GETMNTFS ((u_long)6)
extern "C" amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *);
extern "C" amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *);
#define AMQPROC_GETVERS ((u_long)7)
extern "C" amq_string * amqproc_getvers_57(void *, CLIENT *);
extern "C" amq_string * amqproc_getvers_57_svc(void *, struct svc_req *);

#elif defined(__STDC__)
#define AMQPROC_NULL ((u_long)0)
extern void * amqproc_null_57(void *, CLIENT *);
extern void * amqproc_null_57_svc(void *, struct svc_req *);
#define AMQPROC_MNTTREE ((u_long)1)
extern amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *);
extern amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_UMNT ((u_long)2)
extern void * amqproc_umnt_57(amq_string *, CLIENT *);
extern void * amqproc_umnt_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_STATS ((u_long)3)
extern amq_mount_stats * amqproc_stats_57(void *, CLIENT *);
extern amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *);
#define AMQPROC_EXPORT ((u_long)4)
extern amq_mount_tree_list * amqproc_export_57(void *, CLIENT *);
extern amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *);
#define AMQPROC_SETOPT ((u_long)5)
extern int * amqproc_setopt_57(amq_setopt *, CLIENT *);
extern int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *);
#define AMQPROC_GETMNTFS ((u_long)6)
extern amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *);
extern amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *);
#define AMQPROC_GETVERS ((u_long)7)
extern amq_string * amqproc_getvers_57(void *, CLIENT *);
extern amq_string * amqproc_getvers_57_svc(void *, struct svc_req *);

#else /* Old Style C */
#define AMQPROC_NULL ((u_long)0)
extern void * amqproc_null_57();
extern void * amqproc_null_57_svc();
#define AMQPROC_MNTTREE ((u_long)1)
extern amq_mount_tree_p * amqproc_mnttree_57();
extern amq_mount_tree_p * amqproc_mnttree_57_svc();
#define AMQPROC_UMNT ((u_long)2)
extern void * amqproc_umnt_57();
extern void * amqproc_umnt_57_svc();
#define AMQPROC_STATS ((u_long)3)
extern amq_mount_stats * amqproc_stats_57();
extern amq_mount_stats * amqproc_stats_57_svc();
#define AMQPROC_EXPORT ((u_long)4)
extern amq_mount_tree_list * amqproc_export_57();
extern amq_mount_tree_list * amqproc_export_57_svc();
#define AMQPROC_SETOPT ((u_long)5)
extern int * amqproc_setopt_57();
extern int * amqproc_setopt_57_svc();
#define AMQPROC_GETMNTFS ((u_long)6)
extern amq_mount_info_list * amqproc_getmntfs_57();
extern amq_mount_info_list * amqproc_getmntfs_57_svc();
#define AMQPROC_GETVERS ((u_long)7)
extern amq_string * amqproc_getvers_57();
extern amq_string * amqproc_getvers_57_svc();
#endif /* Old Style C */

#endif /* !_AMQ_H_RPCGEN */
